//
//  AppreciationCell.m
//  Lovelife
//
//  Created by dllo on 15/5/4.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "AppreciationCell.h"
@implementation AppreciationCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.photoImage = [[UIImageView alloc]init];
        [self.contentView addSubview:self.photoImage];
        self.titleLabel = [[UILabel alloc]init];
        [self.contentView addSubview:self.titleLabel];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.photoImage.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.height - 20);
    self.titleLabel.frame = CGRectMake(0, self.frame.size.height - 20, self.frame.size.width, 20);
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
